// components/WeatherNav/WeatherNav.js
const moment=require('../../assets/js/moment')

Component({
    /**
     * 组件的属性列表
     */
   
    properties: {
        weatherlist:{
            type:Object
        }
    },
    /**
     * 组件的初始数据
     */
    lifetimes:{
    },
    data: {
        dataTime:''
    },
    observers:{
      'weatherlist':function(val){
        if(val.weathernow.code!=''){
        
        }
      }  
    },
    /**
     * 组件的方法列表
     */
    methods: {
       citylist(){
           let that=this
        wx.navigateTo({
            url: '../../pages/indexlist/citylist/index',
            events:{
                resultlocation(res){
                       console.log(res);
                       if(res.curlocation){
                            that.triggerEvent('curlocation',res.curlocation)
                    }
                } 
                
            }
          })
       }
       
    }
})
